package org.smog.core.config.security.jwt;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-14 11:33
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
@Component
@ConfigurationProperties("jwt")
public class JwtProperties {

    /**
     * headerKey
     */
    private String header = "Authorization";
    /**
     * token 解析密匙
     */
    private String tokenSecret = "smog0318";
    /**
     * Bearer
     */
    private String tokenPrefix = "Bearer ";
    /**
     * 有效期 ,默认一天
     */
    private long expiration = 24*60*60;
    /**
     * 有效期验证开启 默认不开启
     */
    private boolean expirationVerificationEnable = false;
}
